//
//  YTTNow.m
//  跑圈儿
//
//  Created by dllo on 16/4/28.
//  Copyright © 2016年 唐康. All rights reserved.
//

#import "YTTNow.h"

@implementation YTTNow

+ (YTTNow *)pareseNowJosnData:(NSDictionary *)dic{
    return  [[self alloc] pareseNowJosnData:dic];
}


- (YTTNow *)pareseNowJosnData:(NSDictionary *)dic{
    self.tmp = dic[@"HeWeather data service 3.0"][0][@"now"][@"tmp"];
    self.qlty = dic[@"HeWeather data service 3.0"][0][@"aqi"][@"city"][@"qlty"];
    self.iconCodeUrl = [NSString stringWithFormat:@"http://files.heweather.com/cond_icon/%@.png",dic[@"HeWeather data service 3.0"][0][@"now"][@"cond"][@"code"]];
    
    return self;
}



@end
